from django.db import models

class Star(models.Model):
    name = models.CharField(max_length=200, blank=True)
    picture = models.URLField(blank=True)
    picture_path = models.FilePathField(blank=True)


class User(models.Model):
    name = models.CharField(max_length=200)
    phone = models.CharField(max_length=200)
    wechat_openid = models.CharField(max_length=200, blank=True)
    star = models.ForeignKey(Star)
    picture = models.URLField(blank=True)
    picture_path = models.FilePathField(blank=True)
